package com.woniuxy.servcie.impl;

import com.woniuxy.dao.RbacRoleDao;
import com.woniuxy.entity.RbacManager;
import com.woniuxy.entity.RbacRole;
import com.woniuxy.servcie.RbacRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 佘赛飞
 * @create 2021-11-26 12:29 上午
 */
@Service
public class RbacRoleServiceImpl implements RbacRoleService {
    @Autowired
    RbacRoleDao rbacRoleDao;
    @Override
    public RbacRole findOneRbacRole(int id) {
        return rbacRoleDao.findOneRbacRole(id);
    }

    @Override
    public List <RbacRole> findAllRbacRole(RbacManager rbacManager) {
        return rbacRoleDao.findAllRbacRole(rbacManager);
    }

    @Override
    public void addRbacRole(RbacRole rbacRole) {
       rbacRoleDao.addRbacRole(rbacRole);
    }

    @Override
    public Integer UpRbacRole(RbacRole rbacRole) {
        return rbacRoleDao.UpRbacRole(rbacRole);
    }

    @Override
    public void deleteRbacRole(RbacRole rbacRole) {
       rbacRoleDao.deleteRbacRole(rbacRole);
    }

    @Override
    public List <RbacRole> FindAllAndPaginationRbacRole() {
        return rbacRoleDao.FindAllAndPaginationRbacRole();
    }
}
